<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ page session="false"%>
<html>
<head>
	<title>Add/Edit Record</title>
</head>
<body>
<form:form commandName="person" action="/lovergreen/update" method="post">
	<table>
		<tr>
			<td><label>Email: </label></td>
			<td><form:input path="email" autocomplete="true" /></td>
		</tr>
		<tr>
			<td><label>Confirm Key: </label></td>
			<td><form:input path="confirmkey" autocomplete="true" /></td>
		</tr>
		<tr>
			<td><label>Active: </label></td>
			<td><form:checkbox value="true" path="active" autocomplete="true" /></td>
		</tr>
		<tr>
			<td><label>Password: </label></td>
			<td><form:input path="password" autocomplete="true" /></td>
		</tr>
		<tr>
			<td><label>First Name : </label></td>
			<td><form:input path="firstname" autocomplete="true" /></td>
		</tr>
		<tr>
			<td><label>Last Name : </label></td>
			<td><form:input path="lastname" autocomplete="true" /></td>
		</tr>
		<tr>
			<td><label>Cellphone: </label></td>
			<td><form:input path="cellphone" autocomplete="true" /></td>
		</tr>
		<tr>
			<td><label>Role: </label></td>
			<td><form:input path="personRole.role" autocomplete="true" /></td>
		</tr>
		<tr>
			<td><label>Role Id: </label></td>
			<td><form:input path="personRole.email" autocomplete="true" /></td>
		</tr>
		<tr>
			<td colspan="2"><input type="submit" value="Update" /></td>
		</tr>
	</table>
</form:form>

</body>
</html>